A-Kind-Of relationship
Point class
TASK:
Consider you have to write a drawing program. This
program would allow drawing of various
objects
such as
points, circles, rectangles, triangles and many more. For each
object you provide a
class
definition.
X
class Point {
attributes:
int x, y
methods:
setX(int newX)
getX()
setY(int newY)
getY()
}
(x, y)
Y